from pymysql import Connection

conn = Connection(host='linux.server', port=3306, user='root', password='Chenhao$123456')

print(type(conn))
print(conn.get_host_info())
print(conn.get_server_info())

# 关闭连接
conn.close()
